package org.example.shujuk.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class 数据库controller {
    @RequestMapping(value="/hello",method = RequestMethod.GET)
   //@GetMapping("hello")
    //http://localhost:8080/hello     本地域名访问
    //http://loaclhost:8080/hello?nickname=zhangsan
    public String hello(String nickname){

        return "hello " + nickname;
    }
}
